import { mongoose, prop } from '@typegoose/typegoose';
import { ApiProperty } from '@nestjs/swagger';
import { Base } from '@typegoose/typegoose/lib/defaultClasses';

export class Tab implements Base {
  _id: mongoose.Types.ObjectId;
  id: string;

  @ApiProperty({ description: 'tab的名字' })
  @prop()
  name: string;

  @ApiProperty({ description: 'tab的Url' })
  @prop()
  url: string;
}
